﻿Imports GalaSoft.MvvmLight
Namespace FL_8x0.FL_830.Model
    Public Class SystemModel
        Inherits ViewModelBase
        Private _autoSaveWave As Boolean
        Private _savePath As String
        Private _gpAutoStretch As Boolean
        Private _gpMin As Single
        Private _gpMax As Single

        Private _dpAutoStretch As Boolean
        Private _dpMin As Single
        Private _dpMax As Single

        Private _midwayJudgment As Boolean
        Private _uFlashSave As Boolean
        Private _pressurePoint As UShort
        Private _leakPoint As UShort
        Private _username As String
        Private _password As String
        Private _auditMode As Boolean

        Private _enableReadPressure As Boolean


        Private _enableScanningGun As Boolean
        Private _autoStart As Boolean
        Private _writeToMachine As Boolean
        Private _portName As UShort
        Private _baudRate As UShort
        Private _endChar As UShort

        Private _in1 As UShort
        Private _out1 As UShort
        Private _in2 As UShort
        Private _out2 As UShort


        Private _model As String
        Private _sn As String
        Private _version As String
        Private _time As String

        Private _saveRecordTip As Boolean
        Private _exitDetectionTip As Boolean
        Private _exitAppTip As Boolean


        Public Property AutoSaveWave As Boolean
            Get
                Return _autoSaveWave
            End Get
            Set
                _autoSaveWave = Value
            End Set
        End Property

        Public Property SavePath As String
            Get
                Return _savePath
            End Get
            Set
                _savePath = Value
            End Set
        End Property

        Public Property GpAutoStretch As Boolean
            Get
                Return _gpAutoStretch
            End Get
            Set
                _gpAutoStretch = Value
            End Set
        End Property

        Public Property GpMin As Single
            Get
                Return _gpMin
            End Get
            Set
                _gpMin = Value
            End Set
        End Property

        Public Property GpMax As Single
            Get
                Return _gpMax
            End Get
            Set
                _gpMax = Value
            End Set
        End Property

        Public Property DpAutoStretch As Boolean
            Get
                Return _dpAutoStretch
            End Get
            Set
                _dpAutoStretch = Value
            End Set
        End Property

        Public Property DpMin As Single
            Get
                Return _dpMin
            End Get
            Set
                _dpMin = Value
            End Set
        End Property

        Public Property DpMax As Single
            Get
                Return _dpMax
            End Get
            Set
                _dpMax = Value
            End Set
        End Property

        Public Property MidwayJudgment As Boolean
            Get
                Return _midwayJudgment
            End Get
            Set
                _midwayJudgment = Value
            End Set
        End Property

        Public Property UFlashSave As Boolean
            Get
                Return _uFlashSave
            End Get
            Set
                _uFlashSave = Value
            End Set
        End Property

        Public Property PressurePoint As UShort
            Get
                Return _pressurePoint
            End Get
            Set
                _pressurePoint = Value
            End Set
        End Property

        Public Property LeakPoint As UShort
            Get
                Return _leakPoint
            End Get
            Set
                _leakPoint = Value
            End Set
        End Property

        Public Property EnableScanningGun As Boolean
            Get
                Return _enableScanningGun
            End Get
            Set
                _enableScanningGun = Value
            End Set
        End Property

        Public Property AutoStart As Boolean
            Get
                Return _autoStart
            End Get
            Set
                _autoStart = Value
            End Set
        End Property

        Public Property PortName As UShort
            Get
                Return _portName
            End Get
            Set
                _portName = Value
            End Set
        End Property

        Public Property BaudRate As UShort
            Get
                Return _baudRate
            End Get
            Set
                _baudRate = Value
            End Set
        End Property

        Public Property EndChar As UShort
            Get
                Return _endChar
            End Get
            Set
                _endChar = Value
            End Set
        End Property

        Public Property In1 As UShort
            Get
                Return _in1
            End Get
            Set
                _in1 = Value
            End Set
        End Property

        Public Property Out1 As UShort
            Get
                Return _out1
            End Get
            Set
                _out1 = Value
            End Set
        End Property

        Public Property In2 As UShort
            Get
                Return _in2
            End Get
            Set
                _in2 = Value
            End Set
        End Property

        Public Property Out2 As UShort
            Get
                Return _out2
            End Get
            Set
                _out2 = Value
            End Set
        End Property

        Public Property Model As String
            Get
                Return _model
            End Get
            Set
                _model = Value
            End Set
        End Property

        Public Property Sn As String
            Get
                Return _sn
            End Get
            Set
                _sn = value
            End Set
        End Property

        Public Property Version As String
            Get
                Return _version
            End Get
            Set
                _version = Value
            End Set
        End Property

        Public Property Time As String
            Get
                Return _time
            End Get
            Set
                _time = Value
                RaisePropertyChanged()
            End Set
        End Property

        Public Property SaveRecordTip As Boolean
            Get
                Return _saveRecordTip
            End Get
            Set
                _saveRecordTip = value
            End Set
        End Property

        Public Property ExitDetectionTip As Boolean
            Get
                Return _exitDetectionTip
            End Get
            Set
                _exitDetectionTip = value
            End Set
        End Property

        Public Property Username As String
            Get
                Return _username
            End Get
            Set
                _username = value
            End Set
        End Property

        Public Property Password As String
            Get
                Return _password
            End Get
            Set
                _password = value
            End Set
        End Property

        Public Property ExitAppTip As Boolean
            Get
                Return _exitAppTip
            End Get
            Set
                _exitAppTip = value
            End Set
        End Property

        Public Property WriteToMachine As Boolean
            Get
                Return _writeToMachine
            End Get
            Set(value As Boolean)
                _writeToMachine = value
            End Set
        End Property

        Public Property AuditMode As Boolean
            Get
                Return _auditMode
            End Get
            Set(value As Boolean)
                _auditMode = value
            End Set
        End Property

        Public Property EnableReadPressure As Boolean
            Get
                Return _enableReadPressure
            End Get
            Set(value As Boolean)
                _enableReadPressure = value
            End Set
        End Property
    End Class
End Namespace